// src/api/auth.js
import request from '@/utils/request'

export const login = (credentials) => {
    return request.post('/login', credentials)
}

export const getCurrentUser = () => {
    return request.get('/users/me')
}

export const logout = () => {
    return request.post('/logout')
}

export const refreshToken = () => {
    return request.post('/refresh')
}